﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Data.OracleClient;
using System.Text;
using ReflectionStudio.Core.Events;
using INTEX.DataBase;
using INTEX.DataBase.Tools;
namespace WPFExcelReport
{
    //
    public class DSTAB55AV95Data : BaseFunction
    {

        INTEXDBC INTEXDBC;
        SETINTEXDB INTEXDB = new SETINTEXDB();
        public DSTAB55AV95Data()
            : base()
        {

        }
        public DSTAB55AV95Data(OracleConnection _OracleDB, IntexReptServBLClient _proxy, string userID = "        ")
            : base(_OracleDB, _proxy, userID)
        {
            INTEXDBC = new INTEXDBC(_OracleDB, _proxy);
        }
        public DSTAB55AV95Data(Dictionary<string, object> DicGlobalPara)
            : base(DicGlobalPara)
        {

        }

        public DataSet BuildData(DataRow dwInput)
        {
            DataSet Result = new DataSet();
            DataSet Return = new DataSet();
            try
            {
                Result = INTEXDBC.QueryDSTPLAN(dwInput, 5);
                Result.Tables[0].TableName = "DSTPLAN_AB55";
                Return.Merge(Result);
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
            return Return;
        }
        public void UpdateABAUFM(DataRow dwInput)
        {
            INTEXDBC.UpdateABAUFM(dwInput, 1, "50.24");
        }
    }
}